/**
 * Created by asus on 2017/5/18.
 */
public class OurAchv extends SetNum{
        public String project(int b){
                Postfix a = new Postfix();
                LevelOne one = new LevelOne();
                if (b==1){

                    return one.OpOne();
                }
                if (b==2){
                    return one.OpTwo();
                }
                if (b==3){
                    LevelTwo two =new LevelTwo();
                    return two.Pro();
                }
                if (b==4){
                    LevelThree three = new LevelThree();
                    return Four();
                }
                if (b==5){
                    return Five();
                }
                if (b==6){
                    return six();
                }
                else
                    return sevn();

            }

        public String  Four(){
            LevelThree T = new LevelThree();
            int a = getC();
            if (a==0){
                return T.Front(2)+T.Middle(1);
            }
            if (a==1){
                return T.Middle(2)+T.End(1);
            }
            if (a==2){
                return T.Middle(1)+T.End(2);
            }
            else {
                return T.Front(1)+T.Middle(1)+T.End(1);
            }
        }

        public String Five(){
            LevelThree T = new LevelThree();
            int a = getC();
            if (a==0) {
                return T.Front(2) + T.Middle(1);
            }
            else {
                return T.Front(2)+T.Middle(1)+T.End(0);
            }
        }

        public String six(){
            LevelThree T = new LevelThree();
            int a = getC();
            if (a==0){
                return T.Front(2)+T.Middle(2);
            }
            else
                return T.Middle(2)+T.End(2);
        }

        public String sevn(){
            LevelThree T = new LevelThree();
            int a = getC();
            if (a==0){
                return T.Front(2)+T.Middle(2)+T.End(1);
            }
            else
                return T.Front(2)+T.Front(2)+T.Middle(1);
        }
}
